package org.dtrd.modules.record.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.dtrd.modules.record.entity.bean.DailySugarRecord;
import org.dtrd.modules.record.entity.po.DtrdViewRlCheckinRecord;

import java.util.List;

@Mapper
public interface DtrdViewRlCheckinRecordMapper extends BaseMapper<DtrdViewRlCheckinRecord> {

    List<DtrdViewRlCheckinRecord> selectCheckinRecords(@Param("patientId") Integer patientId, @Param("startDate") String startDate, @Param("endDate") String endDate,@Param("recordTypes") String recordTypes ,@Param("sort") String sort);

    List<DailySugarRecord> getDailySugarRecord(@Param("patientId") Integer patientId, @Param("startDate") String startDate, @Param("endDate") String endDate, @Param("pageStart") Integer page, @Param("pageSize") Integer pageSize);

    List<DtrdViewRlCheckinRecord> selectCheckinGroupRecordsByRecordTypes(@Param("patientId") Integer patientId,
                                                                         @Param("startDate") String startTime,
                                                                         @Param("endDate") String endTime,
                                                                         @Param("recordTypes") String recordTypes,
                                                                         @Param("sort") String asc);

}